package com.max.xihu.patterns.afactory;

/**
 * @Author: Max
 * @Date: 2020-09-06 09:40
 * @Description:
 */
public class GodClient {

    public static void main(String[] args) {
        //指定代理工厂
        AbstractFactory factory = new ConcreateFactory();
        //创建产品对象
        AbstractProduct productA = factory.createProductA();
        AbstractProduct productB = factory.createProductB();
        //实现产品逻辑
        productA.createProduct();
        productB.createProduct();

    }
}
